package com.duan.DataCheckGW.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import com.duan.DataCheckGW.entity.RiskFieldScript;

public interface RiskFieldScriptMapper {

	@Select("SELECT * FROM field_script_info WHERE product_code = #{productCode} and risk_type = #{riskType}")
	@Results({
		@Result(property = "id",  column = "id"),
		@Result(property = "productCode",  column = "product_code"),
		@Result(property = "riskType", column = "risk_type"),
		@Result(property = "riskFieldScript", column = "risk_fields_script"),
		@Result(property = "riskCheckError", column = "risk_check_error")
	})
	RiskFieldScript getRiskFieldScript(@Param("productCode")String productCode,@Param("riskType")String riskType);
}
